//package com.sname.demofeign;
//
//import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
//import com.sname.demofeign.service.FeignService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.AsyncResult;
//
//import java.util.concurrent.Future;
//
///**
// * Created By  醉美柳舞之众星捧月
// *
// * @author 宋贤坤
// * @date 2018/11/19 17:48
// */
//public class Commond {
//    @Autowired
//    private FeignService feignService;
//
//    @HystrixCommand
//    public Future<String> getEmployeesAsync() {
//        return new AsyncResult<String>() {
//            @Override
//            public String invoke() {
//                //在此处调用feignService来发请求
//                return feignService.hello("laowang");
//            }
//        };
//    }
//
//    @HystrixCommand
//    public String getEmployeesAsync1() {
//        return feignService.hello("laowang");
//    }
//}
